package org.example.slave.packet;

/**
 * @author dingrui
 * @since 2022/2/15
 * @description
 *
 * https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol
 */
public interface Packet {

    default void fromBytes(byte[] data) {
        throw new UnsupportedOperationException();
    }

    default byte[] toBytes() {
        throw new UnsupportedOperationException();
    }
}
